#pragma once
#include<string>
#include <cstdio>
#include <iostream>
class RspMsg
{
public:
	RspMsg(void);
	~RspMsg(void);
public:
	int GetErrorCode()
	{
		return mErrorCode;
	}
	void SetErrorCode(int aError)
	{
		mErrorCode = aError;
	}

	std::string GetErrorMsg()
	{
		return std::string(m_ErrorMsg);
	}
	std::string SetErrorMsg(const std::string & aErrorMsg)
	{
		sprintf_s(m_ErrorMsg,mErrorMsgLen,aErrorMsg.c_str());
	}

private:
	static const int mErrorMsgLen = 1024;
	char m_ErrorMsg[mErrorMsgLen];
	int mErrorCode;
};

